package com.bjsxt.livegoods.order.service.config;

import com.bjsxt.livegoods.dao.order.OrderDao;
import com.bjsxt.livegoods.dao.order.OrderDaoImpl;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.mongodb.core.MongoTemplate;

@Configuration
public class OrderConfiguration {
    @Bean
    public OrderDao orderDao(MongoTemplate mongoTemplate){
        OrderDaoImpl orderDao=new OrderDaoImpl();
        orderDao.setMongoTemplate(mongoTemplate);
        return orderDao;
    }
}
